package com.zeldu.teacher.homework.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;


import com.zeldu.teacher.homework.Dto.HomeWrok_SutdentDto;
import com.zeldu.teacher.homework.entity.Student_HomeWrok;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface Student_HomeWrokMapper extends BaseMapper<Student_HomeWrok>{

    List<Student_HomeWrok> findHomeWrokBySid(Long sid);
    Student_HomeWrok findById(Long id);

    String findDetailHw(@Param("hid") Long hid, @Param("sid") Long sid);

    int UpdateScore(@Param("score") String score,@Param("hid") Long hid,@Param("sid") Long sid);

    int insertPatchTo(List<HomeWrok_SutdentDto> list);

    int insertPatchToDO(List<Student_HomeWrok> list);

    Student_HomeWrok showContent(Long sid, Long hid);
}
